<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            厂家管理
            <small>厂家信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">厂家管理</a></li>
            <li class="active">厂家编辑</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">厂家信息</div>
            <%--enctype="multipart/form-data"--%>
            <form id="editForm" action="${ctx}/factory/edit.do" method="post" >
<%--                <input type="text" name="id" value="${contractProduct.id}">--%>
<%--                <input type="text" name="contractId" value="${contractProduct.contractId}">--%>
<%--                <input type="text"  name="factoryName" id="factoryName" value="${contractProduct.factoryName}">--%>
                <div class="row data-type" style="margin: 0px">
                    <div class="col-md-2 title">厂家名称</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="厂家简称" name="factoryName" value="${factory.factoryName}">
                    </div>
                    <div class="col-md-2 title">厂家全名</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="厂家全名" name="fullName" value="${factory.fullName}">
                    </div>
                    <div class="col-md-2 title">联系人</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="联系人" name="contacts" value="${factory.contacts}">
                    </div>

                    <div class="col-md-2 title">厂家号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="厂家号" name="id" value="${factory.id}">
                    </div>

                    <div class="col-md-2 title">厂家类型</div>
                    <div class="col-md-4 data">
                        <select class="form-control" name="factoryId" id="ctype" onchange="document.getElementById('factoryName').value=this.options[this.selectedIndex].text">
                            <option value="">请选择</option>
                                <option value="${factory.ctype}" }>
                                        货物
                                </option>
                            <option value="${factory.ctype}" }>
                                附件
                            </option>
                        </select>
                    </div>

                    <div class="col-md-2 title">地址</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="地址" name="address" value="${factory.address}">
                    </div>

                    <div class="col-md-2 title">电话号码</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="电话号码" name="phone" value="${factory.phone}">
                    </div>

                    <div class="col-md-2 title">状态</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="状态" name="state" value="${factory.state}">
                    </div>
                    <div class="col-md-2 title">排序号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="排序号" name="orderNo" value="${factory.orderNo}">
                    </div>
                </div>
            </form>
        </div>
        <!--订单信息/-->

        <!--工具栏-->
        <div class="box-tools text-center">
            <button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存</button>
            <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
        </div>
        <!--工具栏/-->

    </section>
    <!-- 正文区域 /-->


</div>
<!-- 内容区域 /-->
</body>

</html>